package org.example;

import org.example.rpc.core.serializer.JsonSerializer;

public class SerialzerTest {
    public static void main(String[] args) {
        JsonSerializer jsonSerializer = new JsonSerializer();
        HelloObject obj = new HelloObject(1, "12");
        byte[] bytes = jsonSerializer.serialize(obj);
        System.out.println(bytes.length);
        HelloObject deserialize = (HelloObject) jsonSerializer.deserialize(bytes, HelloObject.class);

        System.out.println(deserialize.getMessage());
    }
}
